package com.mu.service;

import com.mu.domain.InputMessage;

import javax.servlet.http.HttpServletResponse;

/**
 * @author shang
 */
public interface MessageService {

    /**
     * 消息处理
     * @param request 消息
     * @param response 返回体
     */
    void sendMessage(InputMessage request, HttpServletResponse response);

    /**
     * 消息发送至AI
     *
     * @param userId 用户id
     * @param msg    消息
     */
    void sendMessage(String userId, String msg);

}
